import { get, post } from "@/utils/request"



/**
 * 分页获取商品table列表企业
 */
export const GetInvoiceList=(params:any)=>{
    return post(`/invoice-service/invoice/queryCompanyPageList`,params)
}

/**
 * 新增企业
 */
export const addList=(params:any)=>{
    return post(`/invoice-service/invoice/addCompany`,params)
}

/**
 * 编辑企业
 */
export const editFirmAPI=(params:any)=>{
    return post(`/invoice-service/invoice/updateCompany`,params)
}

/**
 * 编辑企业
 */
export const delFirmAPI=(params:any)=>{
    return post(`/invoice-service/invoice/deleteCompany`,params)
}


/**
 * 获得开票员分页列表
 */
export const getStaffList=(params:any)=>{
    return post(`/invoice-service/invoice/queryUserPageList`,params)
}

/**
 * 新增开票员
 */
export const addStaffList=(params:any)=>{
    return post(`/invoice-service/invoice/addUser`,params)
}

/**
 * 编辑开票员
 */
export const editStaffList=(params:any)=>{
    return post(`/invoice-service/invoice/updateUser`,params)
}

/**
 * 删除开票员
 */
export const delStaffList=(params:any)=>{
    return post(`/invoice-service/invoice/deleteUser`,params)
}

/**
 * 查询开票信息列表
 */
export const getInvoiceInfoList=(params:any)=>{
    return post(`/invoice-service/invoice/queryPageList`,params)
}

/**
 * 新增开票信息--蓝票
 */
export const addBlueInvoice=(params:any)=>{
    return post(`/invoice-service/invoice/submit`,params)
}

/**
 * 开票/冲红---taskType:1蓝票，2冲红
 */
export const addTaskInvoice=(params:any)=>{
    return post(`/invoice-service/invoice/createInvoice`,params)
}

/**
 * 删除开票信息
 */
export const delInvoiceInfo=(params:any)=>{
    return post(`/invoice-service/invoice/delete`,params)
}

/**
 * 刷新
 */
export const refreshAPI=(params:any)=>{
    return post(`/invoice-service/invoice/queryInvoiceResult`,params)
}

/**
 * 登录
 */
export const loginInvoice=(params:any)=>{
    return post(`/invoice-service/invoice/login`,params)
}

/**
 * 获取二维码
 */
export const taskAPI=(params:any)=>{
    return post(`/invoice-service/invoice/queryTask`,params)
}

/**
 * 创建实人认证任务
 */
export const faceAdd=(params:any)=>{
    return post(`/invoice-service/invoice/scanFace`,params)
}

/**
 * 检查登录状态
 */
export const checkLoginAPI=(params:any)=>{
    return post(`/invoice-service/invoice/queryUserStatus`,params)
}

// /**
//  * 获得所有商品分类
//  */
// export const getAllOneAPI=()=>{
//     return get(`/cdwl-merchant/goodsType/types`)
// }
